package com.mms.action.meetingroom;

import java.util.List;

import com.mms.dao.MeetingRoomManagementDao;
import com.mms.entity.MeetingRoom;
import com.opensymphony.xwork2.Action;

public class SearchMeetingRoomAction implements Action{

	private List<MeetingRoom> meetingMessage;
	private String searchMes;
	
	
	public List<MeetingRoom> getMeetingMessage() {
		return meetingMessage;
	}


	public void setMeetingMessage(List<MeetingRoom> meetingMessage) {
		this.meetingMessage = meetingMessage;
	}


	public String getSearchMes() {
		return searchMes;
	}


	public void setSearchMes(String searchMes) {
		this.searchMes = searchMes;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		MeetingRoomManagementDao mrmt = new MeetingRoomManagementDao();
		meetingMessage = mrmt.getSrearchMeetingRooms(searchMes);
		return "success";
	}
}
